package com.sctvcloud.zhaohua_sd.ui.activities;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.ruihang.generalibrary.ui.widget.CustomFontTextView;
import com.sctvcloud.zhaohua_sd.R;
import com.sctvcloud.zhaohua_sd.base.BaseActivity;
import com.sctvcloud.zhaohua_sd.ui.utils.GlideCircleTransform;
import com.sctvcloud.zhaohua_sd.ui.utils.GlideUtil;
import com.sctvcloud.zhaohua_sd.ui.utils.TitleUtils;

import butterknife.BindView;
import butterknife.ButterKnife;

public class MessageInfoActivity extends BaseActivity {

    public static final String MESSAGE_TIME = "message_info_time";
    public static final String MESSAGE_CONTENT = "message_info_content";
    @BindView(R.id.message_time)
    protected CustomFontTextView messageTime;
    @BindView(R.id.message_content)
    protected CustomFontTextView messageContent;
    @BindView(R.id.message_img)
    protected ImageView messageimg;


    private String time;
    private String content;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        new TitleUtils(this).useAndSetTxTitle("消息详情页");

        time = getIntent().getStringExtra(MESSAGE_TIME);
        content = getIntent().getStringExtra(MESSAGE_CONTENT);
        initView();
    }


    @Override
    protected void initInject() {
        setContentView(R.layout.activity_message_info);
        ButterKnife.bind(this);
    }

    private void initView(){
        messageTime.setText(time);
        messageContent.setText(content);
//        GlideUtil.getDynamicGlid(this, url, true).transform(new GlideCircleTransform(this))
//                .diskCacheStrategy(DiskCacheStrategy.NONE)
//                .into(messageimg);
    }

}
